import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Signup from '@/components/Signup'
import Home from '@/components/Home'
import LoginBefore from '@/components/Loginbefore'

//超级权限
import Company_charts from '@/components/Company_charts'
import CompanySearch from '@/components/CompanySearch'
import CompanyLink from '@/components/CompanyLink'
import CompanyIndex from '@/components/CompanyIndex'
import MedicineCode from '@/components/MedicineCode'
import GoveronmentStaff from '@/components/GoveronmentStaff'

//政府权限
// import DrugsScatter from '@components/DrugsScatter'
import Government_company_search from '@/components/Government_company_search'
import Government_drugs_search from '@/components/Government_drugs_search'
import Government_medcode_search from '@/components/Government_medcode_search'
import Government_medcode_location from '@/components/Government_medcode_location'
import Government_charts from '@/components/Government_charts'

//企业权限
import Company_base from '@/components/Company_base'
import Company_gsp from '@/components/Company_gsp'
import Company_contact from '@/components/Company_contact'
import Company_licence from '@/components/Company_licence'
import Company_drugs_base from '@/components/Company_drugs_base'
import Company_drugs_image from '@/components/Company_drugs_image'
import Company_drugs_search from '@/components/Company_drugs_search'
import Company_drugs_add from '@/components/Company_drugs_add'
import Company_medcode_search from '@/components/Company_medcode_search'
import Company_medcode_location from '@/components/Company_medcode_location'
import Company_link_add from '@/components/Company_link_add'
import Company_operate from '@/components/Company_operate'
import Company_order from '@/components/Company_order'
//手机端
import medcode_m from '@/components/medcode_m'
import medcode_detail_m from '@/components/medcode_detail_m'

Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: LoginBefore
    },
    {
      path: '/index',
      name: 'index',
      component: LoginBefore
    },
     {
      path: '/Login',
      name: 'Login',
      component: Login
    },
    {
      path: '/signup',
      name: 'Signup',
      component: Signup
    },
    {
      path:'/medcode-m',
      name:'medcode-m',
      component: medcode_m
    },
    {
      path:'/medcode-detail-m',
      name:'medcode-detail-m',
      component: medcode_detail_m
    },
    {
      path: '/home',
      name: 'Home',
      component: Home,
      children: [
        // {path:'',component:DrugsScatter},
        // {path:'DrugsScatter',component:DrugsScatter},
        {path:'Government',component:Company_charts},
        {path:'Government_company_search',component:Government_company_search},
        {path:'Government_drugs_search',component:Government_drugs_search},
        {path:'Government_medcode_search',component:Government_medcode_search},
        {path:'Government_medcode_location',component:Government_medcode_location},
        {path:'Government_charts',component:Government_charts},
        
        //企业权限
        {path:'Company_charts',component:Company_charts},
        {path:'Company_base',component:Company_base},
        {path:'Company_gsp',component:Company_gsp},
        {path:'Company_contact',component:Company_contact},
        {path:'Company_drugs_search',component:Company_drugs_search},
        {path:'Company_drugs_image',component:Company_drugs_image},
        {path:'Company_medcode_search',component:Company_medcode_search},
        {path:'Company_medcode_location',component:Company_medcode_location},
        {path:'Company_drugs_search',component:Company_drugs_search},
        {path:'Company_drugs_add',component:Company_drugs_add},
        {path:'Company_link_add',component:Company_link_add},
        {path:'Company_operate',component:Company_operate},
        {path:'Company_order',component:Company_order},
      ]
    }
  ]
})
